package com.androidx.p013lv.mine.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.activity.ProxyActivity;
import com.androidx.p013lv.mine.bean.ProxyBean;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;

/* renamed from: com.androidx.lv.mine.databinding.ActivityProxyLayoutBindingImpl */
public class ActivityProxyLayoutBindingImpl extends ActivityProxyLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback27;
    private final View.OnClickListener mCallback28;
    private final View.OnClickListener mCallback29;
    private final View.OnClickListener mCallback30;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final TextView mboundView1;
    private final TextView mboundView10;
    private final TextView mboundView11;
    private final TextView mboundView12;
    private final Button mboundView13;
    private final TextView mboundView2;
    private final TextView mboundView3;
    private final TextView mboundView4;
    private final TextView mboundView5;
    private final TextView mboundView6;
    private final TextView mboundView7;
    private final Button mboundView8;
    private final TextView mboundView9;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C1207R.C1210id.toolbar, 14);
    }

    public ActivityProxyLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 15, sIncludes, sViewsWithIds));
    }

    private ActivityProxyLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 1, (Toolbar) objArr[14]);
        this.mDirtyFlags = -1;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[10];
        this.mboundView10 = textView2;
        textView2.setTag(null);
        TextView textView3 = (TextView) objArr[11];
        this.mboundView11 = textView3;
        textView3.setTag(null);
        TextView textView4 = (TextView) objArr[12];
        this.mboundView12 = textView4;
        textView4.setTag(null);
        Button button = (Button) objArr[13];
        this.mboundView13 = button;
        button.setTag(null);
        TextView textView5 = (TextView) objArr[2];
        this.mboundView2 = textView5;
        textView5.setTag(null);
        TextView textView6 = (TextView) objArr[3];
        this.mboundView3 = textView6;
        textView6.setTag(null);
        TextView textView7 = (TextView) objArr[4];
        this.mboundView4 = textView7;
        textView7.setTag(null);
        TextView textView8 = (TextView) objArr[5];
        this.mboundView5 = textView8;
        textView8.setTag(null);
        TextView textView9 = (TextView) objArr[6];
        this.mboundView6 = textView9;
        textView9.setTag(null);
        TextView textView10 = (TextView) objArr[7];
        this.mboundView7 = textView10;
        textView10.setTag(null);
        Button button2 = (Button) objArr[8];
        this.mboundView8 = button2;
        button2.setTag(null);
        TextView textView11 = (TextView) objArr[9];
        this.mboundView9 = textView11;
        textView11.setTag(null);
        setRootTag(view);
        this.mCallback27 = new OnClickListener(this, 1);
        this.mCallback29 = new OnClickListener(this, 3);
        this.mCallback30 = new OnClickListener(this, 4);
        this.mCallback28 = new OnClickListener(this, 2);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 2048;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.proxy == i) {
            setProxy((ProxyBean) obj);
        } else if (C1206BR.click != i) {
            return false;
        } else {
            setClick((ProxyActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityProxyLayoutBinding
    public void setProxy(ProxyBean proxyBean) {
        updateRegistration(0, proxyBean);
        this.mProxy = proxyBean;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C1206BR.proxy);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityProxyLayoutBinding
    public void setClick(ProxyActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i != 0) {
            return false;
        }
        return onChangeProxy((ProxyBean) obj, i2);
    }

    private boolean onChangeProxy(ProxyBean proxyBean, int i) {
        if (i == C1206BR._all) {
            synchronized (this) {
                this.mDirtyFlags |= 1;
            }
            return true;
        } else if (i == C1206BR.performance) {
            synchronized (this) {
                this.mDirtyFlags |= 4;
            }
            return true;
        } else if (i == C1206BR.brokerage) {
            synchronized (this) {
                this.mDirtyFlags |= 8;
            }
            return true;
        } else if (i == C1206BR.performanceMonth) {
            synchronized (this) {
                this.mDirtyFlags |= 16;
            }
            return true;
        } else if (i == C1206BR.brokerageMonth) {
            synchronized (this) {
                this.mDirtyFlags |= 32;
            }
            return true;
        } else if (i == C1206BR.inviteUserMonthNum) {
            synchronized (this) {
                this.mDirtyFlags |= 64;
            }
            return true;
        } else if (i == C1206BR.inviteUserNum) {
            synchronized (this) {
                this.mDirtyFlags |= 128;
            }
            return true;
        } else if (i == C1206BR.twoInviteUserNum) {
            synchronized (this) {
                this.mDirtyFlags |= 256;
            }
            return true;
        } else if (i == C1206BR.threeInviteUserNum) {
            synchronized (this) {
                this.mDirtyFlags |= 512;
            }
            return true;
        } else if (i != C1206BR.fourInviteUserNum) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 1024;
            }
            return true;
        }
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        String str;
        String str2;
        String str3;
        String str4;
        String str5;
        String str6;
        String str7;
        String str8;
        String str9;
        String str10;
        String str11;
        String str12;
        String str13;
        String str14;
        String str15;
        String str16;
        String str17;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        ProxyBean proxyBean = this.mProxy;
        ProxyActivity.OnClick onClick = this.mClick;
        String str18 = null;
        if ((4093 & j) != 0) {
            double d = 0.0d;
            if ((j & 2057) != 0) {
                str10 = String.valueOf(proxyBean != null ? proxyBean.getBrokerage() : 0.0d);
            } else {
                str10 = null;
            }
            int i = 0;
            if ((j & 2177) != 0) {
                str11 = String.valueOf(proxyBean != null ? proxyBean.getInviteUserNum() : 0);
            } else {
                str11 = null;
            }
            if ((j & 3073) != 0) {
                str12 = String.valueOf(proxyBean != null ? proxyBean.getFourInviteUserNum() : 0);
            } else {
                str12 = null;
            }
            if ((j & 2305) != 0) {
                str13 = String.valueOf(proxyBean != null ? proxyBean.getTwoInviteUserNum() : 0);
            } else {
                str13 = null;
            }
            if ((j & 2561) != 0) {
                str14 = String.valueOf(proxyBean != null ? proxyBean.getThreeInviteUserNum() : 0);
            } else {
                str14 = null;
            }
            if ((j & 2113) != 0) {
                if (proxyBean != null) {
                    i = proxyBean.getInviteUserMonthNum();
                }
                str15 = String.valueOf(i);
            } else {
                str15 = null;
            }
            if ((j & 2053) != 0) {
                str16 = String.valueOf(proxyBean != null ? proxyBean.getPerformance() : 0.0d);
            } else {
                str16 = null;
            }
            if ((j & 2065) != 0) {
                str17 = String.valueOf(proxyBean != null ? proxyBean.getPerformanceMonth() : 0.0d);
            } else {
                str17 = null;
            }
            if ((j & 2081) != 0) {
                if (proxyBean != null) {
                    d = proxyBean.getBrokerageMonth();
                }
                str18 = String.valueOf(d);
            }
            str3 = str10;
            str2 = str15;
            str5 = str18;
            str = str11;
            str7 = str12;
            str9 = str13;
            str8 = str14;
            str4 = str16;
            str6 = str17;
        } else {
            str9 = null;
            str8 = null;
            str7 = null;
            str6 = null;
            str5 = null;
            str4 = null;
            str3 = null;
            str2 = null;
            str = null;
        }
        if ((j & 2048) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback27);
            this.mboundView13.setOnClickListener(this.mCallback30);
            this.mboundView2.setOnClickListener(this.mCallback28);
            this.mboundView8.setOnClickListener(this.mCallback29);
        }
        if ((j & 2305) != 0) {
            TextViewBindingAdapter.setText(this.mboundView10, str9);
        }
        if ((j & 2561) != 0) {
            TextViewBindingAdapter.setText(this.mboundView11, str8);
        }
        if ((j & 3073) != 0) {
            TextViewBindingAdapter.setText(this.mboundView12, str7);
        }
        if ((j & 2053) != 0) {
            TextViewBindingAdapter.setText(this.mboundView3, str4);
        }
        if ((j & 2057) != 0) {
            TextViewBindingAdapter.setText(this.mboundView4, str3);
        }
        if ((2065 & j) != 0) {
            TextViewBindingAdapter.setText(this.mboundView5, str6);
        }
        if ((2081 & j) != 0) {
            TextViewBindingAdapter.setText(this.mboundView6, str5);
        }
        if ((2113 & j) != 0) {
            TextViewBindingAdapter.setText(this.mboundView7, str2);
        }
        if ((j & 2177) != 0) {
            TextViewBindingAdapter.setText(this.mboundView9, str);
        }
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            ProxyActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.btnBack();
            }
        } else if (i == 2) {
            ProxyActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.proxyRules();
            }
        } else if (i == 3) {
            ProxyActivity.OnClick onClick3 = this.mClick;
            if (onClick3 != null) {
                z = true;
            }
            if (z) {
                onClick3.performanceDetails();
            }
        } else if (i == 4) {
            ProxyActivity.OnClick onClick4 = this.mClick;
            if (onClick4 != null) {
                z = true;
            }
            if (z) {
                onClick4.toPromote();
            }
        }
    }
}
